package com.ssd.api.order;


import com.ssd.api.order.dto.OrderDetailViewModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

//@FeignClient(name = "product-service", url = "http://localhost:9004/product-service")
//@FeignClient(name = "product-service")
//@FeignClient(contextId = "product-service", value = "product-service", path = "/sku")
@FeignClient(name = "order-service", url = "http://localhost:9008/order-service/inner/order")
public interface OrderApi {
    @GetMapping("/getOrderNo")
    public String getOrderNo(@RequestParam String transactionId);

    @GetMapping("/getOrderList")
    public List<OrderDetailViewModel> getOrderList(@RequestParam String orderNo);
}
